package gof.com.yew.visitor;

public class PersonalVisitor implements ComputerPartVisitor{
	
	private double price;

	@Override
	public void visitCPU(ComputerPart cp) {
		price += 1000;
	}

	@Override
	public void visitKeboard(ComputerPart cp) {
		price += 100;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}
	
}
